package cc.cc4414.cloud.demo.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import cc.cc4414.cloud.demo.form.TestForm;
import cc.cc4414.cloud.demo.vo.TestVO;
import cc.cc4414.cloud.result.ResultVO;

/**
 * @author cc 2019年1月27日
 */
@RestController
public class TestController {
	@Value("${test}")
	private String test;

	@GetMapping
	public ResultVO<TestVO> test(TestForm s) {
		return new ResultVO<TestVO>(new TestVO().setRes(test + ": " + s.getReq()));
	}
}
